#include "elite_robot_sdk_param.h"

//机器人碰撞使能参数
void EliteColEnable::set_params()
{
    writer->Key("params");
    writer->StartObject();
    writer->Key("enable");
    writer->Int(enable);
    writer->EndObject();
}

//机器人运行速度参数
void EliteSpeedValue::set_params()
{
    writer->Key("params");
    writer->StartObject();
    writer->Key("value");
    writer->Double(value);
    writer->EndObject();
}

//机器人jbi文件名参数
void EliteJbiFilename::set_params()
{
    writer->Key("params");
    writer->StartObject();
    writer->Key("filename");
    writer->String((char*)filename.c_str(), (rapidjson::SizeType)filename.length());
    writer->EndObject();
}

void EliteGetSystemVar::set_params()
{
    writer->Key("params");
    writer->StartObject();
    writer->Key("addr");
    writer->Int(addr);
    writer->EndObject();
}

void EliteSetServoStatus::set_params()
{
    writer->Key("params");
    writer->StartObject();
    writer->Key("status");
    writer->Int(status);
    writer->EndObject();
}
